package group.teachingmanagerbk.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程信息表
 * </p>
 *
 * @author author
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course")
public class Course implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "course_id", type = IdType.AUTO)
    private Integer courseId;

    /**
     * 课程名称
     */
    @TableField("name")
    private String name;

    /**
     * 任课教师
     */
    @TableField("teacher_id")
    private Integer teacherId;

    /**
     * 学分
     */
    @TableField("credit")
    private String credit;

    /**
     * 学时
     */
    @TableField("hour")
    private String hour;

    /**
     * 上课时间(可能需要改进)
     */
    @TableField("time")
    private String time;

    /**
     * 地点id
     */
    @TableField("place_id")
    private Integer placeId;

    /**
     * 简介描述
     */
    @TableField("description")
    private String description;

    /**
     * 课程状态
     */
    @TableField("course_status_id")
    private Integer courseStatusId;

    /**
     * 0代表没有删除，1代表已经删除了。
     */
    @TableField("is_delete")
    private Integer isDelete;


}
